package com.wu.dms.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
/**
 * @description comment
 * @author Cousin
 * @date 2025-01-08
 */
@TableName(value = "comment")
@Data
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 资源ID
     */
    private Long resourceId;

    /**
     * 资源类型（0-歌曲 1-歌单）
     */
    private Integer resourceType;

    /**
     * 评论
     */
    private String content;

    /**
     * 发布时间
     */
    private String createTime;

    /**
     * 点赞数
     */
    private Integer up;

    public Comment() {}
}
